package com.nzy.tree;

import java.io.Serializable;
import java.util.Date;

/**
 * @Table t_view
 * @Comment 视图表
 * @author ningzhaoyun
 */
public class View implements Serializable {
    /**
     * 视图id
     */
    private Long id;

    /**
     * 视图名称
     */
    private String name;

    /**
     * 标题
     */
    private String title;

    /**
     * path
     */
    private String path;

    /**
     * 视图标识
     */
    private String code;

    /**
     * 视图类型 0-系统 1-页面 2-按钮 3-目录 4-外链
     */
    private Integer type;

    /**
     * 所属应用
     */
    private String appId;

    /**
     * 应用名称
     */
    private String appName;

    /**
     * 应用描述
     */
    private String appDescription;

    /**
     * 图标
     */
    private String icon;

    /**
     * 是否隐藏0-显示，1-隐藏
     */
    private Integer hidden;

    /**
     * 跳转地址
     */
    private String component;

    /**
     * keepAlive 0-是，1-否
     */
    private Integer keepAlive;

    /**
     * 上级视图id
     */
    private Long parentId;

    /**
     * 视图层级 0代表顶层
     */
    private Integer viewLevel;

    /**
     * 0-正常，1-删除
     */
    private Integer status;

    /**
     * 顺序
     */
    private Integer num;

    /**
     * 根视图跳转地址
     */
    private String url;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId == null ? null : appId.trim();
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getViewLevel() {
        return viewLevel;
    }

    public void setViewLevel(Integer viewLevel) {
        this.viewLevel = viewLevel;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getHidden() {
        return hidden;
    }

    public void setHidden(Integer hidden) {
        this.hidden = hidden;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public Integer getKeepAlive() {
        return keepAlive;
    }

    public void setKeepAlive(Integer keepAlive) {
        this.keepAlive = keepAlive;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getAppDescription() {
        return appDescription;
    }

    public void setAppDescription(String appDescription) {
        this.appDescription = appDescription;
    }
}
